package com.homework.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
public class MistakeQuestionDTO {

    private Long id;

    @NotNull(message = "科目ID不能为空")
    private Long subjectId;

    @Size(max = 100, message = "标题长度不能超过100个字符")
    private String title;

    @NotBlank(message = "错题内容不能为空")
    private String content;

    private String imageUrl;
}